Skip to content

fix #1274: test for dotty bootstrap based on tasty #1427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 13, 2016

Conversation

liufengyun
Copy link
Contributor

Fix #1274.

The real change is to make user-supplied -classpath take precedence over libraries from the compiler runtime.

@liufengyun liufengyun force-pushed the fix-i1274 branch 4 times, most recently from f87791f to f6f28d8 Compare August 8, 2016 08:45
@smarter
Copy link
Member

smarter commented Aug 8, 2016

I see what you're trying to do but this still seem like a very weird change to me, do we really want the scala bootclasspath to have a lesser priority than the scala user classpath?

@liufengyun
Copy link
Contributor Author

@smarter letting user to override the compiler runtime libs seems reasonable for following cases:

  1. User wants to compile for a different JRE from the one that runs the compiler.
  2. User wants to compile with a different version of scala-collection that the compiler depends on.

WDYT?

BTW, the change passes the test set if run locally. I'm still investigating why it fails on Jenkins.

@smarter
Copy link
Member

smarter commented Aug 8, 2016

Would be interesting to hear from someone with more experience with classfile resolving like @adriaanm maybe ?

@liufengyun
Copy link
Contributor Author

Finally passed all tests. Review @smarter ?

@smarter
Copy link
Member

smarter commented Sep 8, 2016

Note that scalac will stop using the bootclasspath with Java 9 where it's not available anymore apparently: scala/scala@ce08ea5

@liufengyun liufengyun force-pushed the fix-i1274 branch 2 times, most recently from 0c1283a to 53b2ff9 Compare October 12, 2016 16:12
val noCheckOptions = List(
// "-verbose",
// "-Ylog:frontend",
// "-Xprompt",
// "-explaintypes",
// "-Yshow-suppressed-errors",
"-d", defaultOutputDir,
"-pagewidth", "160")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that I moved the -d option to noCheckOptions, so that the dotc_core_nocheck test case also generates class files under ./out/, instead of the current directory.

@liufengyun liufengyun force-pushed the fix-i1274 branch 2 times, most recently from b25b020 to 5f0cec6 Compare October 13, 2016 08:59
@liufengyun
Copy link
Contributor Author

This is now rebased and test pass.

@felixmulder felixmulder merged commit dac5b93 into scala:master Oct 13, 2016
@allanrenucci allanrenucci deleted the fix-i1274 branch December 14, 2017 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants